// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Item {
//    width: 100
//    height: 62
    anchors.fill: parent

    Text
    {
        id: title
        text: text_string
        font.bold: true
        font.underline: true
        font.pointSize: 30
        color: "white"

        width: 400
        height: 100
    }

    ListView
    {
        x: 0
        y: title.y + title.height
        width: parent.width
        height: parent.height - title.height
        spacing: 10
        delegate: Item {
            x: 5
            height: 40
            Row {
                id: row1
                spacing: 10
                Rectangle {
                    width: 40
                    height: 40
                    color: colorCode
                }

                Text {
                    text: name
                    anchors.verticalCenter: parent.verticalCenter
                    font.bold: true
                    color: colorCode
                }
            }
        }
        model:
        {
            switch (text_string)
            {
            case "pagemodel_0" :
                pagemodel_0;
                break;
            case "pagemodel_1" :
                pagemodel_1;
                break;
            }
        }
    }
}
